import request from '@/utils/request'

// 查询车辆总体信息列表
export function listCxcar(query) {
  return request({
    url: '/paint/cxcar/list',
    method: 'get',
    params: query
  })
}

// 查询车辆总体信息详细
export function getCxcar(id) {
  return request({
    url: '/paint/cxcar/' + id,
    method: 'get'
  })
}

// 新增车辆总体信息
export function addCxcar(data) {
  return request({
    url: '/paint/cxcar',
    method: 'post',
    data: data
  })
}

// 修改车辆总体信息
export function updateCxcar(data) {
  return request({
    url: '/paint/cxcar',
    method: 'put',
    data: data
  })
}

// 删除车辆总体信息
export function delCxcar(id) {
  return request({
    url: '/paint/cxcar/' + id,
    method: 'delete'
  })
}
